local sk__nishi = fk.CreateSkill {

  name = "sk__nishi",

  tags = { Skill.Compulsory, },

}



sk__nishi:addEffect(fk.Damaged, {
  name = "sk__nishi",
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(sk__nishi.name) and data.from and data.from ~= player and
    not data.from.dead
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:doIndicate(player.id, { data.from.id })
    if #data.from:getCardIds("e") == 0 or
        not room:askForSkillInvoke(data.from, sk__nishi.name, nil, "#sk__nishi-invoke:" .. player.id) then
      room:useVirtualCard("slash", nil, player, data.from, sk__nishi.name, true)
    else
      room:throwCard(data.from:getCardIds("e"), sk__nishi.name, data.from, player)
    end
  end,
})

return sk__nishi
